package com.dotstone.chipism.bean;

import com.dotstone.chipism.util.Util;

public class LockRecord {
	private String time;
	private int logId;
	private String deviceId;
	private String statusPackage;
	private int status;
	private long createTime;
	
	public String getTime() {
		return time;
	}

	public void setTime(String time) {
		this.time = time;
	}

	public int getLogId() {
		return logId;
	}

	public void setLogId(int logId) {
		this.logId = logId;
	}

	public String getDeviceId() {
		return deviceId;
	}

	public void setDeviceId(String deviceId) {
		this.deviceId = deviceId;
	}

	public String getStatusPackage() {
		return statusPackage;
	}

	public void setStatusPackage(String statusPackage) {
		this.statusPackage = statusPackage;
	}

	public int getStatus() {
		return status;
	}

	public void setStatus(int status) {
		this.status = status;
	}

	public long getCreateTime() {
		return createTime;
	}

	public void setCreateTime(long createTime) {
		this.createTime = createTime;
	}

	public LockRecord(int logId, String deviceId, String statusPackage,
			int status, long createTime) {
		super();
		this.logId = logId;
		this.deviceId = deviceId;
		this.statusPackage = statusPackage;
		this.status = status;
		this.createTime = createTime;
		transTime();
	}
	
	private void transTime(){
		time = Util.transTime(createTime);
	}
}
